<?php
$mod_main_recomm = MBGlobal::getAdminRecomm()->getMod(4);
$main_recomm_arr = MBGlobal::getAdminRecomm()->showMainRecomm(0, $mod_main_recomm['list'][0]['p2'], 1);
$main_recomm_arr = formatUserList($main_recomm_arr);

if($mod_main_recomm['list'][0]['status']){
?>
<table width="632" border="0" cellpadding="0" cellspacing="10" class="bk">
	<?php
	for($i=0; $i<count($main_recomm_arr['list']); $i++){
		if($i%3==0){
			if($i!=0){
				?>
				</tr>
				<?php
			}
			?>
			<tr>
				<td colspan="3" align="left"></td>
			</tr>
			<tr>
			<?php
		}
		?>
		<td align="left">
			<table height="58" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td width="63" rowspan="3" align="left" valign="middle">
						<table border="0" cellpadding="0" cellspacing="2" class="bk1">
							<tr>
								<td><a href="index.php?m=guest&u=<?php echo $main_recomm_arr['list'][$i]['uname']?>" target="_blank"><img src="<?php echo $main_recomm_arr['list'][$i]['head']?>" width="50" height="50" border="0" /></a></td>
							</tr>
						</table>
					</td>
					<td width="125" align="left"><a href="index.php?m=guest&u=<?php echo $main_recomm_arr['list'][$i]['uname']?>" target="_blank"><?php echo $main_recomm_arr['list'][$i]['nick']?></a></td>
				</tr>
				<!--tr>
					<td align="left"><a href="#" target="_blank"><img src="style/images/login/btn.gif" width="45" height="15" border="0" /></a></td>
				</tr-->
				<tr>
					<td align="left" class="f12"><?php echo $main_recomm_arr['list'][$i]['info']?></td>
				</tr>
			</table>
		</td>
		<?php
	}
	if($i%3!=0){
		while($i%3!=0){
			?>
			<td></td>
			<?php
			$i++;
		}
	}
	?>
	</tr>
	<tr>
		<td colspan="3" align="left"></td>
	</tr>
</table>
<?php
}
?>